package com.analyzer.tcp;

import hprose.client.HproseClient;

import com.analyzer.inter.Analyzer;

/** @author wyy 
 * @version 1.0 
 * 2015-11-17 上午09:53:57
 */

public class AnalyzerClient {

	private HproseClient client=null;
	private Analyzer analyzer;

	public void start(String host,int port) throws Exception{
		client = HproseClient.create("tcp://"+host+":"+port);
		analyzer = client.useService(Analyzer.class);
	}

	

	public void close(){
		if(client!=null){
			client.close();
		}
	}


	public Analyzer getAnalyzer() {
		return analyzer;
	}

}

